﻿@model ProgrammingSchool.Models.Account.LogOnModel
@{
    ViewBag.Title = "LogOn";
    Layout = "";
}
@using (Ajax.BeginForm("LogOn", "Account", null, new AjaxOptions() { HttpMethod = "POST", InsertionMode = InsertionMode.Replace, UpdateTargetId = Model.TargetId }, new { id = "fmLogin" + Model.TargetId, name = "fmLogin" + Model.TargetId }))
{ 
    @Html.HiddenFor(m => m.TargetId)
    <div id="student_login" style="width: 285px;">
        <div id="student_login_name">
            <span>Student login</span>
        </div>
        <div class="username_password">
            @Html.TextBoxFor(m => m.Login)
            <span>Username:</span>
        </div>
        <div class="username_password">
            @Html.PasswordFor(m => m.Password)
            <span>Password:</span>
        </div>
        <div id="student_remember_check">
            @Html.CheckBoxFor(m => m.RememberMe)
        </div>
        <div id="student_remember">
            <span>Remember me</span>
        </div>
        <div class="errorMessage">
            <span>@Html.ValidationSummary()</span>
        </div>
        <div id="student_login_button">
            <a href="#" onclick="$('#fmLogin@(Model.TargetId)').submit(); return false;"><span>LOGIN</span></a>
        </div>
        <div id="student_forgot">
            <a href="#"><span>Forgot your password?</span></a>
        </div>
        <div id="student_no_account">
            <span>No account yet?</span>
        </div>
        <div id="student_create">
            <a href="#"><span>Create an account now</span></a>
        </div>
    </div>
}
